<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字装饰</title>
    <link rel="stylesheet" href="style/index.css">
</head>
<style>

</style>

<body>
    <div class="decoration">
        <div class="part-1">
            <h2>1.各种线</h2>
            <div class="content">
                <span style="text-decoration: overline solid #DD4F42;">上划线</span>
                <span style="text-decoration: underline solid #DD4F42;">下划线</span>
                <span style="text-decoration: underline wavy #DD4F42;">波浪线</span>
                <span style="text-decoration: line-through solid #DD4F42;">中划线</span>
                <span style="text-decoration-line:overline line-through underline;">多线合并</span>
            </div>
        </div>
        <div class="part-2">
            <h2>2.动画线</h2>
            <div class="content">
                <span class="trans1">标题1</span>
                <p class="animation" data-content="Lorem ibsum dolor Lorem ibsum dolor">Lorem ibsum dolor</p>
                <p class="anim2">Lorem ipsum dolor sit amet consectetur adipisicing elit.
                    <a>Mollitia nostrum placeat consequatur deserunt velit ducimus possimus commodi temporibus debitis quam</a> , molestiae laboriosam sit repellendus sed sapiente quidem quod accusantium vero.
                </p>
            </div>
        </div>
    </div>
</body>

<script>
    // 【缩写】text-decoration:线方向 线类型 颜色
    // 1.线方向（上，中，下，无）
    // text-decoration-line:overline/line-through/underline/blink 
    // 2.线类型（实线，双实线，点线，虚线，波浪线）
    // text-decoration-style：solid/double/dotted/dashe/wavy
    // 3.线颜色
    // text-decoration-color:#666666
</script>

</html>